package com.medical.manage.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @BelongsProject: medical
 * @BelongsPackage: com.medical.manage.domain
 * @Author: szw
 * @CreateTime: 2025-03-14  15:28
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@TableName("t_browse_recording")
public class BrowseRecording {
    //浏览记录表
    @TableId(type = IdType.AUTO)
    private Integer id;
    //用户id
    private Long userId;
    //医生id
    private Integer doctorId;
    //文章id
    private Integer articleId;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //修改时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    //浏览数量
    @TableField(exist = false)
    private Integer browseNum;


}
